<template>
	<view class="contact">
		<image class="img" src="http://www.itcast.cn/2018czydz/images/gywmban.jpg" mode="" ></image>
		<view class="info">
			<view @click="call(phoneNum)">联系电话：{{phoneNum}}（点击拨打）</view>
			<view>联系地址：广东省东莞市南城区西湖街道99号广东科技学院南苑3号楼</view>
		</view>
		
		<map class="map"  :longitude="longitude" :latitude="latitude" :markers="markers" :scale="scale"></map>
		
		
	</view>
</template>

<script>
	export default {
		data() {
			return {
				phoneNum:'010-122-2022',
				longitude:"113.754911",
				latitude:"22.969051",
				scale:'15',
				markers:[{
					longitude:"113.754911",
					latitude:"22.969051",
					icnoPath:"../static/h4.png"
					// width:30,
					// height:30
				}]
			} 
		},
		methods: {
			call(phone){
				console.log(phone)
				uni.makePhoneCall({
					phoneNumber:phone
				})
			}
		}
	}
</script>

<style lang="scss">
.contact{
	.img{
		width: 750rpx;
		height: 320rpx;
	}
}
.info{
	font-size: 30rpx;
	padding: 10rpx 20rpx;
	view{
		line-height: 60rpx;
		border-bottom: 1px solid #eee;
	}
 }
 
 .map{
	 width: 750rpx;
	 height: 730rpx;
 }
</style>
